package util.domain;

/**
 * @author Gregory Boissinot
 */
public class Validate {

    public static void notNull(Object value) {
        notNull(value, "Null value is not valid.");
    }

    public static void notNull(Object value, String message) {
        if (value == null) {
            throw new IllegalArgumentException(message);
        }
    }

}
